{extend name="default/base" /}
{block name="css"}
<link rel="stylesheet" type="text/css" href="__STATIC__/plugins/webuploader/webuploader.css?v={$v}" />
<style>
    .webuploader-pick{background:#337ab7;}
</style>
{/block}
{block name="main"}
<style>
label{margin-right:10px;}
th{height:25px;}
</style>
<div id='tab' class="layui-tab layui-tab-brief">
    <ul class="layui-tab-title">
        <li class="layui-this">店铺信息</li>
        <li>银行信息</li>
    </ul>
    <div class="layui-tab-content" style='width:99%;margin-bottom: 10px;'>
        <div class="layui-tab-item layui-show wst-box-top" style="position: relative;">
           <table id='vinfo_1' class='wst-form'> 
			  <tr>
			     <th width='150'>店铺编号：</th>
			     <td><span style='float:left;padding: 5px 8px;'>{$object['shopSn']}</span>
                 <a class="btn btn-blue" onclick="javascript:toEdit(1)" style='float:right;'><i class="fa fa-pencil"></i>编辑</a>
			     </td>
			  </tr>
			  <tr>
			     <th>店铺名称：</th>
			     <td>{$object['shopName']}</td>
			  </tr>
			  <tr>
			     <th>公司紧急联系人：</th>
			     <td>{$object['shopkeeper']}</td>
			  </tr>
			  <tr>
			     <th>公司紧急联系人手机：</th>
			     <td>{$object['telephone']}</td>
			  </tr>
			  <tr>
			     <th>公司名称：</th>
			     <td>{$object['shopCompany']}</td>
			  </tr>
			  <tr>
			     <th>店铺联系电话：</th>
			     <td>{$object['shopTel']}</td>
			  </tr>
			  <tr>
			     <th>经营类目：</th>
			     <td>{$object['catshopNames']}</td>
			  </tr>
			  <tr>
			     <th>认证类型：</th>
			     <td>
			       {php}$accredLen = count($object['accreds']);{/php}
			       {volist name="$object['accreds']" id="vo"}
			       {$vo["accredName"]}{if $i < $accredLen }、{/if}
			       {/volist}
			     </td>
			  </tr>
			  <tr>
			     <th>店铺图标：</th>
			     <td>
			     <img id='v_shopImg' width='150' height='150' src='__RESOURCE_PATH__/{$object["shopImg"]}'/>
			     </td>
			  </tr>
			  <tr>
			     <th>客服QQ：</th>
			     <td id='v_shopQQ'>{$object['shopQQ']}</td>
			  </tr>
			  <tr>
			     <th>阿里旺旺：</th>
			     <td id='v_shopWangWang'>{$object['shopWangWang']}</td>
			  </tr>
			  <tr>
			     <th>店铺地址：</th>
			     <td>
			       {$object['areaName']}
			     </td>
			  </tr>
			  <tr>
			     <th>店铺详细地址：</th>
			     <td>{$object['shopAddress']}</td>
			  </tr>
			  <tr>
			     <th>是否提供开发票：</th>
			     <td id='v_isInvoice'>
			        {if $object['isInvoice']==1}提供发票{/if}
			        {if $object['isInvoice']==0}不提供发票{/if}  
			     </td>
			  </tr>
			  <tr id='tr_isInvoice' {if $object['isInvoice']==0}style='display:none'{/if}>
			     <th>发票说明：</th>
			     <td id='v_invoiceRemarks'>{$object['invoiceRemarks']}</td>
			  </tr>
			  <tr>
			     <th>默认运费：</th>
			     <td >¥<span id='v_freight'>{$object['freight']}</span></td>
			  </tr>
			  <tr>
			     <th>服务时间：</th>
			     <td><span id='v_serviceStartTime'>{$object['serviceStartTime']}</span>至<span id='v_serviceEndTime'>{$object['serviceEndTime']}</span>
			     </td>
			  </tr>
           </table>
           <form id='editFrom_1' autocomplete="off">
           <table id='einfo_1' class='wst-form hide'>
			  <tr>
			     <th width='150'>店铺图标<font color='red'>*</font>：</th>
			     <td>
			     <img id='preview' width='150' height='150' src='__RESOURCE_PATH__/{$object["shopImg"]}'/>
			     <div id='shopImgPicker' style='margin-top:5px;'>请上传店铺图片</div><span id='uploadMsg'></span>
        <input type='hidden' id='shopImg' class='ipt_1' value='{$object["shopImg"]}'/>
			     </td>
			  </tr>
			  <tr>
			     <th>客服QQ：</th>
			     <td>
			     	<input class="ipt_1" id="shopQQ" value="{$object['shopQQ']}" type="text" style='width:60%'>
			     </td>
			  </tr>
			  <tr>
			     <th> </th>
			     <td>
			     	<span style='color:gray;'>做为客服接收临时消息的QQ,需开通<a target="_blank" href="http://shang.qq.com/v3/index.html">QQ推广功能</a> -> '首页'-> '推广工具'-> '立即免费开通'</span>
			     </td>
			  </tr>
			  <tr>
			     <th>阿里旺旺：</th>
			     <td><input class="ipt_1" id="shopWangWang" value="{$object['shopWangWang']}" type="text" style='width:60%'></td>
			  </tr>
			  <tr>
			     <th>是否提供开发票<font color='red'>*</font>：</th>
			     <td class="layui-form">
			        <label>
			        	<input type='radio' value='1' class="ipt_1" name='isInvoice' onclick='javascript:WST.showHide(1,"#trInvoice")' {if $object['isInvoice']==1}checked{/if} title='提供'/>
			        </label>
			        <label>
			        	<input type='radio' value='0' class="ipt_1" name='isInvoice' onclick='javascript:WST.showHide(0,"#trInvoice")' {if $object['isInvoice']==0}checked{/if} title='不提供'/>
			        </label>
			     </td>
			  </tr>
			  <tr id='trInvoice' {if $object['isInvoice']==0}style='display:none'{/if}>
			     <th>发票说明<font color='red'>*</font>：</th>
			     <td><input class="ipt_1" id="invoiceRemarks" value="{$object['invoiceRemarks']}" type="text" style='width:60%' data-rule="发票说明:required(#isInvoice1:checked)"></td>
			  </tr>
			  <tr>
			     <th>默认运费<font color='red'>*</font>：</th>
			     <td>¥<input class="ipt_1" id="freight" value="{$object['freight']}" size='5' maxlength="10" data-rule="默认运费:required;" type="text" style='margin-left:2px'></td>
			  </tr>
			  <tr>
			     <th>服务时间<font color='red'>*</font>：</th>
			     <td>
			     <select class='ipt_1' id='serviceStartTime' v="{$object['serviceStartTime']}"></select>
		         至
		         <select class='ipt_1' id='serviceEndTime' v="{$object['serviceEndTime']}"></select>
			     </td>
			  </tr>
			  <tr>
			  	<td colspan='2' style="text-align:center">
                    <button type="submit" class="btn btn-primary btn-mright" onclick="javascript:editInfo()"><i class="fa fa-check"></i>保&nbsp;存</button>
                    <button type="button" class="btn" onclick="javascript:toCancel(1)"><i class="fa fa-angle-double-left"></i>返&nbsp;回</button>
			  	</td>
			  </tr>
           </table>
           </form>
        </div>

        <div class="layui-tab-item" style="display:none;">
           <table class='wst-form wst-box-top'>
              <tr>
			     <th width='150'>开卡银行：</th>
			     <td>{$object['bankName']}</td>
			  </tr>
			  <tr>
			     <th width='150'>开卡地区：</th>
			     <td>{$object['bankAreaName']}</td>
			  </tr>
              <tr>
			     <th>卡号：</th>
			     <td>{$object['bankNo']}</td>
			  </tr>
			  <tr>
			     <th>持卡人：</th>
			     <td>{$object['bankUserName']}</td>
			  </tr>
			  
           </table>
        </div>
    </div>
</div>
{/block}  
{block name="js"}
<script type='text/javascript' src='__STATIC__/plugins/webuploader/webuploader.js?v={$v}'></script>
<script type="text/javascript" src="__STATIC__/plugins/validator/jquery.validator.min.js?v={$v}"></script>
<script type='text/javascript' src='__SHOP__/shop/shops.js?v={$v}'></script>
<script>
$(function(){
//	$('#tab').TabPanel({tab:0,callback:function(no){}});
})
</script>
{/block}